package com.magpiebridge.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("news")
public class News {
    @TableId(type = IdType.AUTO)
    private Integer sendid;
    private Integer receptionid;
    private String msg;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date sendtime;
    private String state;
}
